package com.sfzy.mapper;

import com.sfzy.entity.Carousel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CarouselMapper {
    //增
    int addCarousel(Carousel carousel);
    //删
    int deleteCarousel(int id);
    //改
    int updateCarousel(Carousel carousel);
    //根据id查
    Carousel getCarouselById(int id);
    //分页查
    List<Carousel> getAllCarousel(Carousel carousel);

}
